package link.xieyu.controller;

import link.xieyu.pojo.AppUsers;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;

/**
 * @author xieyu
 */
public class BaseController {
    @Autowired
    private HttpServletRequest request;

    protected AppUsers getUser() {
        return (AppUsers) request.getAttribute("user");
    }
}
